const app = getApp();
const WxParse = require('../../../wxParse/wxParse.js');
Page({
  data: {

  },
  onLoad: function (options) {
    let that = this;
    let type = options.type;
    wx.setNavigationBarTitle({
      title: type == 0 ? '平台声明' :'隐私协议',
    })
    app.request(type == 0 ? 'about/statement' :'about/rule',{},'GET',false,function(res){
      that.setData({
        options: options,
        pageShow: true,
        editor: WxParse.wxParse('editor', 'html', res.data.data.detail, that, 5),
      })
    })
  },
  onShareAppMessage: function () {

  }
})